using System;
using System.Collections.Generic;
using System.Text;

using AIFSDataAccessLayer.Utilities;

namespace AIFSContentManagementSystem.DomainObjects.Mapper
{
    public class ArticleCriteriaMapper : DtoMapper<ArticleCriteria>
    {
        protected override void Map(System.Data.DataRow drEntity, ArticleCriteria dto)
        {
            dto.ArticleCriteriaId = DataTableUtil.ToIntType(drEntity, "ARTICLE_CRITERIA_ID");
            dto.ArticleId = DataTableUtil.ToIntType(drEntity, "ARTICLE_ID");
            dto.CriteriaId = DataTableUtil.ToIntType(drEntity, "CRITERIA_ID");            
        }
    }
}
